!macro customInstall
  DeleteRegKey HKCR "print"
  WriteRegStr HKCR "print" "" "URL:print"
  WriteRegStr HKCR "print" "URL Protocol" ""
  WriteRegStr HKCR "print\shell" "" ""
  WriteRegStr HKCR "print\shell\Open" "" ""
  WriteRegStr HKCR "print\shell\Open\command" "" "$INSTDIR\${APP_EXECUTABLE_FILENAME} %1"
!macroend

!macro customUnInstall
  DeleteRegKey HKCR "print"
!macroend